/*
 * $Id: sort.h,v 1.2 2005-12-25 08:03:44 bacon Exp $
 */

#ifndef _XP_BAS_SORT_H_
#define _XP_BAS_SORT_H_

#include <xp/types.h>
#include <xp/macros.h>

#ifdef __cplusplus
extern "C" {
#endif

/* 
 * FUNCTION: xp_qsort 
 *   Sorts an array with the quick-sort algorithm
 */
void xp_qsort (
	void* base, xp_size_t nmemb, xp_size_t size, void* arg,
	int (*compar)(const void*, const void*, void*));


#ifdef __cplusplus
}
#endif

#endif
